const helper = new Helper(this);
const { dataSource } = this.widgetObj._option
const { id, show, isFetch, projectCode, parentProjectAreaId, type } = $event;

console.log('dataSource: => ', dataSource)
console.log('单击', $event)

async function handleAreaData() {
    const result = await _videoAccess?.queryQuotaByArea(parentProjectAreaId ? id : '-1');
    const { areaRows, equipmentRows, fusesRows } = result;
    _videoAccess?.renderTree([...areaRows, ...equipmentRows, ...fusesRows], id);
}

// 区域设备
if (!isFetch) {
    handleAreaData();
}
